#include <QApplication>
#include <QSplashScreen>

#include "blue_com.h"

#include <stdio.h>

using namespace std;

int main(int argc, char *argv[])
{
	QApplication a(argc, argv);
	a.connect(&a, SIGNAL(lastWindowClosed()), &a, SLOT(quit())); 
		
	QPixmap pixmap("robojam_2.png");
	QSplashScreen splash(pixmap);
	splash.show();
	
	splash.showMessage("Initializing WB sensor..", Qt::AlignBottom | Qt::AlignLeft);		
	Sleep(1000);

	splash.finish(&jmw);
	
	blue_com bc;
	bc.start();
	
	a.exec();
	
	return 0;
}